3626982b7dcb838ed948ffd2fbb61fd86a3c1e38,src/main/java/net/marfgamer/raknet/session/RakNetClientSession.java,RakNetClientSession,handlePacket,#RakNetPacket#number#,106

Before Change


			DisconnectionNotification disconnectionNotification = new DisconnectionNotification(packet);
			disconnectionNotification.decode();

			server.removeSession(this, "Client disconnected");
		} else if (packetId >= ID_USER_PACKET_ENUM) {
			server.getListener().handlePacket(this, packet, channel);
		}

After Change


				server.removeSession(this, "Connection failed, invalid handshake");
			}
		} else if (packetId == ID_DISCONNECTION_NOTIFICATION) {
			server.removeSession(this, "Client disconnected");
		} else if (packetId >= ID_USER_PACKET_ENUM) {
			server.getListener().handlePacket(this, packet, channel);
		}